<?php

class Form_CalloutForm extends Form_Custom_General {
 
    public function init() {
        
      $call_person = $this->createElement('text', 'call_person')
                ->setRequired(TRUE)
                ->addValidator('NotEmpty', true, array('messages' => array('isEmpty' => $this->translateObj->translate("call_required_name"))))
                ->addFilters(array(
                    new Zend_Filter_StringTrim()
                ))
                ->setAttribs(Array("size" => "60",  "class" => "span6 input-large ", "placeholder" => $this->translateObj->translate("call_frm_name")));
       $this->addElement($call_person);
       
       $call_contact_no = $this->createElement('text', 'call_contact_no')
                ->setRequired(TRUE)
                ->addValidator('NotEmpty', true, array('messages' => array('isEmpty' => $this->translateObj->translate("call_required_phone"))))
                ->addFilters(array(
                    new Zend_Filter_StringTrim()
                ))
                ->setAttribs(Array("size" => "60", "class" => "span6 input-large ", "placeholder" => $this->translateObj->translate("call_frm_phone")));
       $this->addElement($call_contact_no);
        

       
        $call_comment = $this->createElement('textarea', 'call_comment')
                ->setRequired(TRUE)
                ->addValidator('NotEmpty', true, array('messages' => array('isEmpty' => $this->translateObj->translate("call_required_comment"))))
                ->addFilters(array(
                    new Zend_Filter_StringTrim()
                ))
                ->setAttribs(Array("size" => "60", "cols" =>"10" ,"rows" =>"3", "class" => "span6", "placeholder" => $this->translateObj->translate("call_frm_comment")));
        $this->addElement($call_comment);
        
        $call_status = $this->createElement('select', 'call_status')
                ->setRequired(TRUE)
                ->addFilters(array(
                    new Zend_Filter_StringTrim(),
                    new Zend_Filter_StringToLower()
                ))
                ->addValidator('NotEmpty', true, array('messages' => array('isEmpty' => $this->translateObj->translate("call_required_status"))));
        $this->addElement($call_status);


        $submit = $this->createElement('submit', 'Save')
                ->setAttribs(Array('title' => "Save changes", 'class' => "btn-glow primary"))
                 ->setLabel($this->translateObj->translate("frm_save"));
        $this->addElement($submit);


        $reset = $this->createElement('reset', 'Reset')
                ->setAttribs(Array('title' => "Save changes and continue to edit", 'class' => "btn-glow primary"))
                 ->setLabel($this->translateObj->translate("frm_reset"));
        $this->addElement($reset);
    }

}